open_project proj

set_top SkyNet
add_files SkyNet.cpp
add_files SkyNet.h
add_files DWCONV3X3.cpp
add_files PWCONV1X1.cpp
add_files convolution.cpp

add_files -tb main.cpp -cflags "-Wno-unknown-pragmas"
add_files -tb transform.cpp
add_files -tb utils.cpp
add_files -tb blob -cflags "-Wno-unknown-pragmas"
add_files -tb weight -cflags "-Wno-unknown-pragmas"

set_top SkyNet
open_solution opt

set_part {xczu3eg-sbva484-1-e}
create_clock -period 4

# config_bind -effort high
# config_schedule -effort high -verbose
config_export -format ip_catalog -vivado_phys_opt all -vivado_optimization_level 3

# csim_design -O
csynth_design
# cosim_design -O -disable_deadlock_detection
export_design -flow impl -rtl verilog 
exit